import type { FormInstance } from 'element-plus';
import { ref } from 'vue';

export interface UserInfoListInt {
  avatar: string;
  email: string;
  id: number;
  nickName: string;
  password: string;
  realName: string;
  role: number;
  sex: string;
  status: number;
  teleNumber: string;
}

interface SelectDataInt {
  nickName: string;
}
interface queryDataInt {
  nickName: string;
}

export class InitData {
  userTotalList: UserInfoListInt[] = [];
  selectData: SelectDataInt = {
    nickName: null,
  };
  queryData: queryDataInt = {
    nickName: null,
  };
  activeData: UserInfoListInt = {
    avatar: '',
    email: '',
    id: 0,
    nickName: '',
    password: '',
    realName: '',
    role: 0,
    sex: '',
    status: 0,
    teleNumber: '',
  };
  activeDataPointer: UserInfoListInt = null;
  totalNum = 0;
  currentPage = 1;
  status = 0; //0:addUser 1:editUser
  isShow = false;
  pageSize = 10;
  formRef = ref<FormInstance>();
  isLoading = false;
}


